<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddShopOrdersTotal extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('shop_orders', function (Blueprint $table) {
            $table->decimal('total', 10, 2);
            $table->decimal('discount', 10, 2);
            $table->decimal('score', 10, 2);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('shop_orders', function($table) {
            $table ->dropColumn('total');
            $table ->dropColumn('discount');
            $table ->dropColumn('score');

        });
    }
}
